package com.boge.parse.web;

import org.apache.mina.core.buffer.IoBuffer;

/**
 * @author boge
 *
 */
public class WebSocketCodecPacket {
    private IoBuffer packet;
    
    /*
     * Builds an instance of WebSocketCodecPacket that simply wraps around 
     * the given IoBuffer.
     */
    public static WebSocketCodecPacket buildPacket(IoBuffer buffer){
        return new WebSocketCodecPacket(buffer);
    }
    
    private WebSocketCodecPacket(IoBuffer buffer){
        packet = buffer;
    }
    
    public IoBuffer getPacket(){
        return packet;
    }
}
